package com.ruoyi.materialCuttingPlan.domain;

import com.ruoyi.common.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import javax.validation.constraints.NotBlank;

/**
 * 门窗用料公式变量对象 mcp_variable
 *
 * @author ruoyi
 * @date 2025-07-05
 */
public class McpVariable extends McpBaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 变量ID，主键自增
     */
    private Long id;

    /**
     * 门窗类型ID
     */
    @Excel(name = "门窗类型ID")
    private Long windowTypesId;

    /**
     * 变量名称
     */
    @Excel(name = "变量名称")
    @NotBlank(message = "变量名称不能为空")
    private String variableName;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setWindowTypesId(Long windowTypesId) {
        this.windowTypesId = windowTypesId;
    }

    public Long getWindowTypesId() {
        return windowTypesId;
    }

    public void setVariableName(String variableName) {
        this.variableName = variableName;
    }

    public String getVariableName() {
        return variableName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("windowTypesId", getWindowTypesId())
                .append("variableName", getVariableName())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
